CC = gcc -m32 
CFLAGS = -Wall
OBJS =  monAirportRhapsodyIDS.o cam.o queue.o logging.o

all:		clean probMonAirportRhapsody

allPO:		clean probMonAirportRhapsodyPO

allPA:		clean probMonAirportRhapsodyPA

allBin:		clean probMonAirportRhapsodyBin

probMonAirportRhapsody:		probMonAirportRhapsody.o $(OBJS) monAirportRhapsodyPo.o monAirportRhapsodyPa.o monAirportRhapsodyDr.o
				$(CC) -o $@ $^ -lm -lpthread
				mv probMonAirportRhapsody ../run/probMonAirportRhapsody
				rm -f *.o probMonAirportRhapsody

probMonAirportRhapsodyPO:	probMonAirportRhapsody.o $(OBJS) monAirportRhapsodyPo.o
				cp monAirportRhapsodyPaBin monAirportRhapsodyPa.o
				cp monAirportRhapsodyDrBin monAirportRhapsodyDr.o
				$(CC) -o $@ $^ monAirportRhapsodyPa.o  monAirportRhapsodyDr.o -lm -lpthread
				mv probMonAirportRhapsodyPO ../run/probMonAirportRhapsody
				rm -f *.o probMonAirportRhapsody

probMonAirportRhapsodyPA:	probMonAirportRhapsody.o $(OBJS) monAirportRhapsodyPo.o monAirportRhapsodyPa.o
				cp monAirportRhapsodyDrBin monAirportRhapsodyDr.o
				$(CC) -o $@ $^ monAirportRhapsodyDr.o -lm -lpthread
				mv probMonAirportRhapsodyPA ../run/probMonAirportRhapsody
				rm -f *.o probMonAirportRhapsody

probMonAirportRhapsodyPAZE:	probMonAirportRhapsody.o $(OBJS) monAirportRhapsodyPa.o
				cp monAirportRhapsodyDrBin monAirportRhapsodyDr.o
				cp monAirportRhapsodyPoBin monAirportRhapsodyPo.o
				$(CC) -o $@ $^ monAirportRhapsodyDr.o monAirportRhapsodyPo.o -lm -lpthread
				mv probMonAirportRhapsodyPA ../run/probMonAirportRhapsody
#				rm -f *.o probMonAirportRhapsody

probMonAirportRhapsodyBin:	probMonAirportRhapsody.o $(OBJS)
				cp monAirportRhapsodyPoBin monAirportRhapsodyPo.o
				cp monAirportRhapsodyPaBin monAirportRhapsodyPa.o
				cp monAirportRhapsodyDrBin monAirportRhapsodyDr.o
				$(CC) -o $@ $^ monAirportRhapsodyPo.o monAirportRhapsodyPa.o monAirportRhapsodyDr.o -lm -lpthread
				mv probMonAirportRhapsodyBin ../run/probMonAirportRhapsody
				rm -f *.o probMonAirportRhapsody

clean:
				rm -f *.o probMonAirportRhapsody
				rm -f ../run/probMonAirportRhapsody
